//
//  LrcTableViewCell.m
//  CapriceMusic
//
//  Created by 蒋恩浩 on 16/1/18.
//  Copyright © 2016年 MYX. All rights reserved.
//

#import "LrcTableViewCell.h"

@interface LrcTableViewCell ()

@property (nonatomic, strong) UILabel *lrcLabel;

@end

@implementation LrcTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        self.lrcLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        self.lrcLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.lrcLabel];
    }
    return self;
}

- (void)setColor:(UIColor *)color {
    
    if (_color != color) {
        
        _color = color;
        self.lrcLabel.textColor = color;
    }
}

- (void)setLrcText:(NSString *)lrcText {
    
    if (_lrcText != lrcText) {
        
        _lrcText = lrcText;
    }
    self.lrcLabel.text = lrcText;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.lrcLabel.frame = self.bounds;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
